package com.chixing.day06;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;


public class TestStudent {
    public static void main(String[] args) {
        Student stu1 =   new Student("Allen",20,'F');
        Student stu2 =   new Student("katy",21,'M');

        System.out.println(stu1);
        System.out.println(stu2);

        //等价于
        System.out.println(stu1.toString());
        System.out.println(stu2.toString());

    }
}